package com.joeshing.security.authentication;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

public class SessionAuthenticationDetails implements Serializable{

	private static final long serialVersionUID = 4436088682499858463L;
	private String sessionId;
	private String remoteAddress;
	private Integer sessionTimeOut;
	private Object user;
	private Map<String,Object> session = new HashMap<String, Object>();
	
	public SessionAuthenticationDetails() {
		this.sessionId = UUID.randomUUID().toString();
	}
	
	public Object getUser() {
		return user;
	}
	public void setUser(Object user) {
		this.user = user;
	}
	public Map<String, Object> getSession() {
		return session;
	}
	public void setSession(Map<String, Object> session) {
		this.session = session;
	}
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public String getRemoteAddress() {
		return remoteAddress;
	}
	public void setRemoteAddress(String remoteAddress) {
		this.remoteAddress = remoteAddress;
	}
	public Integer getSessionTimeOut() {
		return sessionTimeOut;
	}
	public void setSessionTimeOut(Integer sessionTimeOut) {
		this.sessionTimeOut = sessionTimeOut;
	}
	
}
